package com.huhu.base;

import org.andengine.engine.Engine;
import org.andengine.engine.camera.BoundCamera;
import org.andengine.entity.scene.Scene;
import org.andengine.opengl.vbo.VertexBufferObjectManager;

import com.huhu.GameActivity;
import com.huhu.manager.ResourcesManager;
import com.huhu.manager.SceneManager.SceneType;

public abstract class BaseScene extends Scene{
	
	protected Engine engine;
	protected GameActivity activity;
	protected BoundCamera camera;
	protected VertexBufferObjectManager vbom;
	protected ResourcesManager resourcesManager;

	public BaseScene(){
		resourcesManager = ResourcesManager.getInstance();
		engine = resourcesManager.engine;
		activity = resourcesManager.activity;
		camera = resourcesManager.camera;
		vbom = resourcesManager.vbom;
		
		createScene();
	}
	
	public abstract void createScene();
	public abstract void onBackKeyPressed();
	public abstract SceneType getSceneType();
	public abstract void disposeScene();
}
